/**
 * @file		delay_ext.c
 * @brief 		waiting functions
 */

#include "../mcu/types.h"
#include "../mcu/delay.h"



/*
********************************************************************************
*               WAIT FUNCTION
*
* Description : This function waits for 1 milliseconds
* Arguments   : cnt - is the time to wait
* Returns     : None
* Note        : Internal Function
********************************************************************************
*/
void wait_1ms(u_int cnt)
{
	for( ; cnt > 0; cnt-- )
		wait_1us(1000);
}

/*
********************************************************************************
*               WAIT FUNCTION
*
* Description : This function waits for 10 milliseconds
* Arguments   : cnt - is the time to wait
* Returns     : None
* Note        : Internal Function
********************************************************************************
*/
void wait_10ms(u_int cnt)
{
	for( ; cnt > 0; cnt-- )
		wait_1ms(10);
}
